cmake_minimum_required(VERSION 3.8)
set(moduleName fusion_perception)

find_package(rclcpp REQUIRED)
find_package(interface REQUIRED)

file (GLOB SRCS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
    time_sync/*.cpp association/*.cpp prediction/*.cpp tracker/*.cpp utils/*.cpp *.cpp)

include(../../common/cmake/add3rd.cmake)
add3rds(utils)

add_executable(${moduleName} ${SRCS})

target_link_libraries(${moduleName} muduo_net muduo_base utils)

ament_target_dependencies(${moduleName} rclcpp interface)

install(TARGETS ${moduleName} DESTINATION lib/${PROJECT_NAME})
